﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CRM.MODEL
{

    #region 存储过程 Pro_GetOrderInfo 的相关参数
    /// <summary>
    /// Pro_GetOrderInfo 的相关参数
    ///OrderInfo
    ///夏磊
    /// </summary>
    [Serializable]
    public struct GetOrderInfo
    {
        //参数定义	 		     
        public const string ORDERNO_PARM = "@OrderNO";
        public const string GUARANTEENO_PARM = "@GuaranteeNO";
        public const string BUYERID_PARM = "@BuyerID";
        public const string BUYERFULLNAME_PARM = "@BuyerFullName";
        public const string BUYERADD_PARM = "@BuyerAdd";
        public const string BUYERTEL_PARM = "@BuyerTel";
        public const string ORDERDATE_PARM = "@OrderDate";
        public const string DELIVERYDATE_PARM = "@DeliveryDate";
        public const string PRODUCTTITLE_PARM = "@ProductTitle";
        public const string PRODUCTMODEL_PARM = "@ProductModel";
        public const string PRODUCTBRAND_PARM = "@ProductBrand";
        public const string PRODUCTCOLOR_PARM = "@ProductColor";
        public const string RAM_PARM = "@RAM";
        public const string ROM_PARM = "@ROM";
        public const string NETWORK4G_PARM = "@Network4G";
        public const string BAND4G_PARM = "@Band4G";
        public const string NETWORK3G_PARM = "@Network3G";
        public const string BAND3G_PARM = "@Band3G";
        public const string NETWORK2G_PARM = "@Network2G";
        public const string BAND2G_PARM = "@Band2G";
        public const string ISDEL_PARM = "@IsDel";
        //分页参数定义  
        public const string ORDERSTRING_PARM = "@OrderString";
        public const string PAGESIZE_PARM = "@PageSize";
        public const string CURRENTPAGEINDEX_PARM = "@CurrentPageIndex";
        public const string TOTALITEMS_PARM = "@TotalItems";

        //字段属性设置
        private object OrderNO;
        public object ORDERNO_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.OrderNO); }
            set
            { this.OrderNO = value; }
        }

        private object GuaranteeNO;
        public object GUARANTEENO_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.GuaranteeNO); }
            set
            { this.GuaranteeNO = value; }
        }

        private object BuyerID;
        public object BUYERID_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BuyerID); }
            set
            { this.BuyerID = value; }
        }

        private object BuyerFullName;
        public object BUYERFULLNAME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BuyerFullName); }
            set
            { this.BuyerFullName = value; }
        }

        private object BuyerAdd;
        public object BUYERADD_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BuyerAdd); }
            set
            { this.BuyerAdd = value; }
        }

        private object BuyerTel;
        public object BUYERTEL_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BuyerTel); }
            set
            { this.BuyerTel = value; }
        }

        private object OrderDate;
        public object ORDERDATE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.OrderDate); }
            set
            { this.OrderDate = value; }
        }

        private object DeliveryDate;
        public object DELIVERYDATE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.DeliveryDate); }
            set
            { this.DeliveryDate = value; }
        }

        private object ProductTitle;
        public object PRODUCTTITLE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ProductTitle); }
            set
            { this.ProductTitle = value; }
        }

        private object ProductModel;
        public object PRODUCTMODEL_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ProductModel); }
            set
            { this.ProductModel = value; }
        }

        private object ProductBrand;
        public object PRODUCTBRAND_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ProductBrand); }
            set
            { this.ProductBrand = value; }
        }

        private object ProductColor;
        public object PRODUCTCOLOR_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ProductColor); }
            set
            { this.ProductColor = value; }
        }

        private object RAM;
        public object RAM_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.RAM); }
            set
            { this.RAM = value; }
        }

        private object ROM;
        public object ROM_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ROM); }
            set
            { this.ROM = value; }
        }

        private object Network4G;
        public object NETWORK4G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Network4G); }
            set
            { this.Network4G = value; }
        }

        private object Band4G;
        public object BAND4G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Band4G); }
            set
            { this.Band4G = value; }
        }

        private object Network3G;
        public object NETWORK3G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Network3G); }
            set
            { this.Network3G = value; }
        }

        private object Band3G;
        public object BAND3G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Band3G); }
            set
            { this.Band3G = value; }
        }

        private object Network2G;
        public object NETWORK2G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Network2G); }
            set
            { this.Network2G = value; }
        }

        private object Band2G;
        public object BAND2G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Band2G); }
            set
            { this.Band2G = value; }
        }

        private object IsDel;
        public object ISDEL_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.IsDel); }
            set
            { this.IsDel = value; }
        }


        //分页属性设置
        private object OrderString;
        public object ORDERSTRING_VALUE
        {
            get { return CRM.UTIL.Common.TransQuote(this.OrderString); }
            set { this.OrderString = value; }
        }

        private object PageSize;
        public object PAGESIZE_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.PageSize, CRM.UTIL.Common.DefaultPageSize); }
            set { this.PageSize = value; }
        }

        private object CurrentPageIndex;
        public object CURRENTPAGEINDEX_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.CurrentPageIndex, CRM.UTIL.Common.DefaultCurrentPageIndex); }
            set { this.CurrentPageIndex = value; }
        }

        private object TotalItems;
        public object TOTALITEMS_VALUE
        {
            get { return CRM.UTIL.Common.TransValue(this.TotalItems); }
            set { this.TotalItems = value; }
        }

    }
    #endregion

    #region 存储过程 Pro_EditOrderInfo 的相关参数
    /// <summary>
    /// Pro_EditOrderInfo 的相关参数
    ///OrderInfo
    ///向国祥
    /// </summary>
    [Serializable]
    public struct EditOrderInfo
    {
        //动作参数
        public const string ACTION_PARM = "@Action";
        //错误信息参数
        public const string ERRMSG_PARM = "@errMsg";
        ////表字段参数
        public const string ORDERNO_PARM = "@OrderNO";
        public const string GUARANTEENO_PARM = "@GuaranteeNO";
        public const string BUYERID_PARM = "@BuyerID";
        public const string BUYERFULLNAME_PARM = "@BuyerFullName";
        public const string BUYERADD_PARM = "@BuyerAdd";
        public const string BUYERTEL_PARM = "@BuyerTel";
        public const string ORDERDATE_PARM = "@OrderDate";
        public const string DELIVERYDATE_PARM = "@DeliveryDate";
        public const string PRODUCTTITLE_PARM = "@ProductTitle";
        public const string PRODUCTMODEL_PARM = "@ProductModel";
        public const string PRODUCTBRAND_PARM = "@ProductBrand";
        public const string PRODUCTCOLOR_PARM = "@ProductColor";
        public const string RAM_PARM = "@RAM";
        public const string ROM_PARM = "@ROM";
        public const string NETWORK4G_PARM = "@Network4G";
        public const string BAND4G_PARM = "@Band4G";
        public const string NETWORK3G_PARM = "@Network3G";
        public const string BAND3G_PARM = "@Band3G";
        public const string NETWORK2G_PARM = "@Network2G";
        public const string BAND2G_PARM = "@Band2G";
        public const string ISDEL_PARM = "@IsDel";


        //动作属性
        private object Action;
        public object ACTION_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Action); }
            set
            { this.Action = value; }
        }

        //错误信息属性
        private object errMsg;
        public object ERRMSG_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.errMsg); }
            set
            { this.errMsg = value; }
        }

        //表字段属性
        private object OrderNO;
        public object ORDERNO_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.OrderNO); }
            set
            { this.OrderNO = value; }
        }

        private object GuaranteeNO;
        public object GUARANTEENO_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.GuaranteeNO); }
            set
            { this.GuaranteeNO = value; }
        }

        private object BuyerID;
        public object BUYERID_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BuyerID); }
            set
            { this.BuyerID = value; }
        }

        private object BuyerFullName;
        public object BUYERFULLNAME_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BuyerFullName); }
            set
            { this.BuyerFullName = value; }
        }

        private object BuyerAdd;
        public object BUYERADD_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BuyerAdd); }
            set
            { this.BuyerAdd = value; }
        }

        private object BuyerTel;
        public object BUYERTEL_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.BuyerTel); }
            set
            { this.BuyerTel = value; }
        }

        private object OrderDate;
        public object ORDERDATE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.OrderDate); }
            set
            { this.OrderDate = value; }
        }

        private object DeliveryDate;
        public object DELIVERYDATE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.DeliveryDate); }
            set
            { this.DeliveryDate = value; }
        }

        private object ProductTitle;
        public object PRODUCTTITLE_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ProductTitle); }
            set
            { this.ProductTitle = value; }
        }

        private object ProductModel;
        public object PRODUCTMODEL_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ProductModel); }
            set
            { this.ProductModel = value; }
        }

        private object ProductBrand;
        public object PRODUCTBRAND_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ProductBrand); }
            set
            { this.ProductBrand = value; }
        }

        private object ProductColor;
        public object PRODUCTCOLOR_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ProductColor); }
            set
            { this.ProductColor = value; }
        }

        private object RAM;
        public object RAM_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.RAM); }
            set
            { this.RAM = value; }
        }

        private object ROM;
        public object ROM_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.ROM); }
            set
            { this.ROM = value; }
        }

        private object Network4G;
        public object NETWORK4G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Network4G); }
            set
            { this.Network4G = value; }
        }

        private object Band4G;
        public object BAND4G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Band4G); }
            set
            { this.Band4G = value; }
        }

        private object Network3G;
        public object NETWORK3G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Network3G); }
            set
            { this.Network3G = value; }
        }

        private object Band3G;
        public object BAND3G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Band3G); }
            set
            { this.Band3G = value; }
        }

        private object Network2G;
        public object NETWORK2G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Network2G); }
            set
            { this.Network2G = value; }
        }

        private object Band2G;
        public object BAND2G_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.Band2G); }
            set
            { this.Band2G = value; }
        }

        private object IsDel;
        public object ISDEL_VALUE
        {
            get
            { return CRM.UTIL.Common.TransValue(this.IsDel); }
            set
            { this.IsDel = value; }
        }

    }
    #endregion

}
